package taobao;
/** 
  * @author  outsider
  * @date 创建时间：2016年4月20日 下午8:12:02 
  * @note
*/
public abstract class Discount {
	private int discountFee;
	private int limit;

	public Discount(int discountFee, int limit) {
		super();

		this.discountFee = discountFee;
		this.limit = limit;
	}

	public boolean canDiscount(Order order) {
		if (order.getTotal()>=limit)
			return true;
		return false;
	}

	public int getDiscountFee() {
		return this.discountFee;
	}



	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	public void setDiscountFee(int discountFee) {
		this.discountFee = discountFee;
	}
	public abstract void useDiscount(Order order);
}
